package com.zxh.zhenxihuan.mapper;

import com.zxh.zhenxihuan.entity.Classification;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author:geQiang
 * @version:1.0
 * @date:2019/8/2
 * @description:com.zxh.zhenxihuan.mapper
 */
@Mapper
public interface ClassificationMapper {

    @Insert("  insert into classification (id,cname) value (null,#{cname}) ")
    Integer addClassification(Classification classification);

    @Select(" select * from classification ")
    List<Classification> findClassification();

}
